
<style type="text/css">
	#box { background: #FFF; width: 238px; height: 410px; margin: -390px 0 0 0; display: block; border: solid 4px #E4393C; position: absolute; z-index: 999; opacity: .5 }
	.shopMenu { position: fixed; z-index: 1; right: 25%; top: 0; }
</style>
<div class="squares" nc_type="current_display_mode">
  	<input type="hidden" id="lockcompare" value="unlock" />
  	{if(!empty($goods_list))}
  		<ul class="list_pic">
    		{foreach $goods_list as $value}
    			<li class="item">
      				<div class="goods-content" nctype_goods=" {$value['goods_id']}" nctype_store="{$value['store_id']}">
        				<div class="goods-pic">
        					<a href="{:url('shop/Goods/index',array('goods_id'=>$value['goods_id']))}" target="_blank" title="{$value['goods_name']}">
        						<img src="__UPLOAD_PATH__/shop/common/loading.gif" data-url="{:cthumb($value['goods_image'], 240,$value['store_id'])}" rel="lazy" title="{$value['goods_name']}" alt="{$value['goods_name']}" />
        					</a>
        				</div>
        				{if (sysconf('groupbuy_allow') && $value['goods_promotion_type'] == 1)}
        					<div class="goods-promotion"><span>抢购商品</span></div>
        				{elseif(sysconf('promotion_allow') && $value['goods_promotion_type'] == 2)}
        					<div class="goods-promotion"><span>限时折扣</span></div>
        				{/if}
        				<div class="goods-info">
					       <!--  <div class="goods-pic-scroll-show">
					            <ul>
					              	{if(!empty($value['image']))}
					              		{:array_splice($value['image'], 5)}
						              	{volist name="value['image']" id="val"}
								            <li {if($i==1)} class="selected"{/if}>
								              	<a href="javascript:void(0);">
								              		<img src="__UPLOAD_PATH__/shop/common/loading.gif" rel="lazy" data-url="{:cthumb($val, 60,$value['store_id'])}"/>
								              	</a>
								            </li>
						              	{/volist}
					              	{else /}
					              		<li class="selected">
					              			<a href="javascript:void(0);">
					              				<img src="__UPLOAD_PATH__/shop/common/loading.gif" rel="lazy" data-url="{:cthumb($value['goods_image'], 60,$value['store_id'])}" />
					              			</a>
					              		</li>
					              	{/if}
					            </ul>
					        </div> -->
          					<div class="goods-name">
          						<a href="{:url('shop/Goods/index',array('goods_id'=>$value['goods_id']))}" target="_blank" title="{$value['goods_jingle']}">{$value['goods_name_highlight']}</br><em>{$value['goods_jingle']}</em></a>
          					</div>
          					<div class="goods-price"> 
          						{if ($value['goods_promotion_type']==0) }
          						<em class="sale-price" title="商城价：￥{$value['goods_price']}">￥{$value['goods_price']}</em> 
          						{else /}
          						<em class="sale-price" title="活动价：￥{$value['goods_promotion_price']}">￥{$value['goods_promotion_price']}</em> <em class="market-price" title="商城价：￥{$value['goods_marketprice']}">￥{$value['goods_price']}</em>
          						{/if}
					            {if($value["contractlist"] && is_array($value["contractlist"]))}
						            <div class="goods-cti">
						              	{foreach $value["contractlist"] as $gcitem_k=>$gcitem_v}
							              	<span {if($gcitem_v['cti_descurl'])}onclick="window.open('{$gcitem_v['cti_descurl']}');" style="cursor: pointer;"{/if} title="{$gcitem_v['cti_name']}">
							                	<img src="__UPLOAD_PATH__/shop/common/loading.gif" rel="lazy" data-url="{$gcitem_v['cti_icon_url_60']}"/>
							              	</span>
						              	{/foreach}
						            </div>
					            {/if}
          					</div>
          					<!-- <div class="goods-sub">
					            {if ($value['is_virtual'] == 1)}
					            	<span class="virtual" title="虚拟兑换商品">虚拟兑换</span>
					            {/if}
					            {if ($value['is_fcode'] == 1)}
					            	<span class="fcode" title="F码优先购买商品">F码优先</span>
					            {/if}
					            {if ($value['is_book'] == 1)}
					            	<span class="book" title="支付定金预定商品">预定</span>
					            {/if}
					            {if ($value['is_presell'] == 1)}
					            	<span class="presell" title="预售购买商品">预售</span>
					            {/if}
					            {if ($value['have_gift'] == 1)}
					            	<span class="gift" title="捆绑赠品">赠品</span>
					            {/if}
            					<span class="goods-compare" nc_type="compare_{$value['goods_id']}" data-param='{"gid":"{$value['goods_id']}"}'><i></i>加入对比</span> 
          					</div> -->
          					<div class="sell-stat">
					            <ul>
					              	<li>
					              		<a href="{:url('shop/Goods/index',array('goods_id' => $value['goods_id']))}#ncGoodsRate" target="_blank" class="status">{$value['goods_salenum']}人已付款</a>
					                	
					              	</li>
					              	<li>
					              		<a href="{:url('shop/Goods/index',array('goods_id' => $value['goods_id']))}#ncGoodsRate" target="_blank">{$value['evaluation_count']}条好评</a>
					                	
					             	</li>
								  
								  	<!-- {if(sysconf('node_chat'))}
								  		<li>
								  			<em member_id="{$value['member_id']}">&nbsp;</em>
								  		</li>
								  	{else /} -->
								  		<!-- {if ($value['store_qq'])}
								            <li>
								              <a title="QQ客服:{$value['store_qq']}" href="http://wpa.qq.com/msgrd?v=3&amp;uin={$value['store_qq']}&amp;site=qq&amp;menu=yes" target="_blank">
								              	<img border="0" style=" vertical-align: middle;" src="http://wpa.qq.com/pa?p=2:{$value['store_qq']}:52">
								              </a>
								              <p>在线客服</p>
								            </li>
								  		{else /} -->
					               			<!-- <li>
					               				<a title="QQ客服离线" href="javascript:;" style="cursor: default;">
					               					<img border="0" style=" vertical-align: middle;" src="http://pub.idqqimg.com/qconn/wpa/button/button_120.gif">
					               				</a>
					              				<p>客服离线</p>
					               			</li>
								   		{/if} -->
								   	<!-- {/if} -->
					            </ul>
					        </div>
          					<div class="store">
          						<a href="{:url('shop/Showstore/index',array('store_id'=>$value['store_id']))}" title="{$value['store_name']}" class="name">{$value['store_name']}</a>
          					</div>
          					<div class="add-cart">
					            {if ($value['goods_storage'] == 0)}
					            	<a href="javascript:void(0);" onclick="{if (session('is_login') !== '1')}{login_dialog()}{else /} ajax_form('arrival_notice', '到货通知', '{:url("shop/Goods/arrival_notice",array('goods_id' => $value['goods_id'], 'type' => 2))}" {/if}><i class="icon-bullhorn"></i>到货通知</a>
					            {else /}
					            	{if ($value['is_virtual'] == 1 || $value['is_fcode'] == 1 || $value['is_presell'] == 1 || $value['is_book'] == 1)}
					            		<a href="javascript:void(0);" nctype="buy_now" data-param="{goods_id:{$value['goods_id']}}">
					            			<i class="icon-shopping-cart"></i>
								            {if ($value['is_fcode'] == 1)}
								                F码购买
								            {elseif ($value['is_book'] == 1) /}
								            	支付定金
								            {elseif ($value['is_presell'] == 1) /}
								            	预售购买
								            {else /}
								            	立即购买
								            {/if}
					            		</a>
					            	{else /}
					            		<a href="javascript:void(0);" nctype="add_cart" data-gid="{$value['goods_id']}">
					            			<i class="icon-shopping-cart"></i>加入购物车
					            		</a>
					            	{/if}
					            {/if}
					        </div>
        				</div>
      				</div>
    			</li>
    		{/foreach}
    		<div class="clear"></div>
  		</ul>
  	{else /}
  		<div id="no_results" class="no-results">
  			<i></i>没有找到符合条件的商品
  		</div>
  	{/if}
</div>
<form id="buynow_form" method="post" action="" target="_blank">
  	<input id="act" name="act" type="hidden" value="buy" />
  	<input id="op" name="op" type="hidden" value="buy_step1" />
  	<input id="goods_id" name="cart_id[]" type="hidden"/>
</form>
<script type="text/javascript" src="__SITE_RESOURCE__/js/jquery.raty/jquery.raty.min.js"></script> 
<script type="text/javascript">
    $(document).ready(function(){
       /* $('.raty').raty({
            path: "__SITE_RESOURCE__/js/jquery.raty/img",
            readOnly: true,
            width: 80,
            score: function() {
              return $(this).attr('data-score');
            }
        });*/
      	//初始化对比按钮
    	initCompare();
    });
</script> 
